package com.hs.shirodemo01.exception;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @ClassName ProjectException
 * @Description TODO
 * @Author 郭敖
 * @Date 2023年08月18日 21:18
 * @Version 1.0
 */
@Data
@NoArgsConstructor
public class ProjectException extends RuntimeException{
    private static final long serialVersionUID = -7026105298691153704L;
    private Integer code;

    public ProjectException(Integer code) {
        this.code = code;
    }

    public ProjectException(String message, Integer code) {
        super(message);
        this.code = code;
    }

    public ProjectException(String message, Throwable cause, Integer code) {
        super(message, cause);
        this.code = code;
    }

    public ProjectException(Throwable cause, Integer code) {
        super(cause);
        this.code = code;
    }
}
